<extend name='Public:layout' />
<block name='main-content'>	
<div class="daohang">
		<ul>
			<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs"> 首页 </li>
			<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">友情链接列表<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
		</ul>
	</div>	
	<div class="admin-biaogelist">
	    <div class="listbiaoti am-cf">
	      <ul class="am-icon-users"> 友情链接管理</ul>
	      
	      <dl class="am-icon-home" style="float: right;">当前位置： 首页 > <a href="#">友情链接列表</a></dl>
	      
	      <dl>
	        <a type="button" href="__CONTROLLER__/add/" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" > 手动友情链接</a>
	      </dl>
	      <!--这里打开的是新页面--> 
	    </div>
	    <form class="am-form am-g">
          <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
            <thead>
              <tr class="am-success">
                <th class="table-check"><input type="checkbox" /></th>

                <th class="table-id">ID</th>
                <th class="table-title">友情链接名称</th>
                <th class="table-title">友情链接</th>
                <th width="130px" class="table-set">操作</th>
              </tr>
            </thead>
            <tbody>
            <assign name="num" item='0'/>
            <foreach name="links" item="link">
              <tr>
                <td><input type="checkbox" /></td>
                <td>{$link['id']}</td>
                <td>{$link['linkname']}</td>
                <td>{$link['links']}</td>
                <td>	
                	<div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      <a href="__CONTROLLER__/mod/id/{$link.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" title="修改"><span class="am-icon-pencil-square-o"></span></a>
                      <a href="__CONTROLLER__/del/id/{$link.id}" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" onclick="return confirm('你确定要删除吗？');" title="删除"><span class="am-icon-trash-o" ></span></a>
                    </div>
                  </div>
                </td>
              </tr>
              </foreach>
            </tbody>
          </table> 
          <ul class="am-pagination am-fr page"> 
             {$page}
          </ul>   
	    </form>

	</div>

</block>